/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package obai.model.detectors;

import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author Fernando Arena Varella
 * @version 1.0
 */
public class TVDeviceDetector {

    public static boolean isTV(HttpServletRequest request) throws Exception {

        String user_agent = request.getHeader("user-agent");

        //check user-agent
        if (user_agent != null){
            //check if it's the custom made program
            if (user_agent.contains("Java/1.6"))
                return true;
        }


        return false;

    }

}
